package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class WeekStatisticsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WeekStatisticsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStatisticsidIsNull() {
            addCriterion("statisticsId is null");
            return (Criteria) this;
        }

        public Criteria andStatisticsidIsNotNull() {
            addCriterion("statisticsId is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticsidEqualTo(Integer value) {
            addCriterion("statisticsId =", value, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidNotEqualTo(Integer value) {
            addCriterion("statisticsId <>", value, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidGreaterThan(Integer value) {
            addCriterion("statisticsId >", value, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidGreaterThanOrEqualTo(Integer value) {
            addCriterion("statisticsId >=", value, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidLessThan(Integer value) {
            addCriterion("statisticsId <", value, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidLessThanOrEqualTo(Integer value) {
            addCriterion("statisticsId <=", value, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidIn(List<Integer> values) {
            addCriterion("statisticsId in", values, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidNotIn(List<Integer> values) {
            addCriterion("statisticsId not in", values, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidBetween(Integer value1, Integer value2) {
            addCriterion("statisticsId between", value1, value2, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidNotBetween(Integer value1, Integer value2) {
            addCriterion("statisticsId not between", value1, value2, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectIsNull() {
            addCriterion("statisticalObject is null");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectIsNotNull() {
            addCriterion("statisticalObject is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectEqualTo(String value) {
            addCriterion("statisticalObject =", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectNotEqualTo(String value) {
            addCriterion("statisticalObject <>", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectGreaterThan(String value) {
            addCriterion("statisticalObject >", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectGreaterThanOrEqualTo(String value) {
            addCriterion("statisticalObject >=", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectLessThan(String value) {
            addCriterion("statisticalObject <", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectLessThanOrEqualTo(String value) {
            addCriterion("statisticalObject <=", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectLike(String value) {
            addCriterion("statisticalObject like", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectNotLike(String value) {
            addCriterion("statisticalObject not like", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectIn(List<String> values) {
            addCriterion("statisticalObject in", values, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectNotIn(List<String> values) {
            addCriterion("statisticalObject not in", values, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectBetween(String value1, String value2) {
            addCriterion("statisticalObject between", value1, value2, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectNotBetween(String value1, String value2) {
            addCriterion("statisticalObject not between", value1, value2, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeIsNull() {
            addCriterion("statisticalTime is null");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeIsNotNull() {
            addCriterion("statisticalTime is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeEqualTo(String value) {
            addCriterion("statisticalTime =", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeNotEqualTo(String value) {
            addCriterion("statisticalTime <>", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeGreaterThan(String value) {
            addCriterion("statisticalTime >", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeGreaterThanOrEqualTo(String value) {
            addCriterion("statisticalTime >=", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeLessThan(String value) {
            addCriterion("statisticalTime <", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeLessThanOrEqualTo(String value) {
            addCriterion("statisticalTime <=", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeLike(String value) {
            addCriterion("statisticalTime like", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeNotLike(String value) {
            addCriterion("statisticalTime not like", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeIn(List<String> values) {
            addCriterion("statisticalTime in", values, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeNotIn(List<String> values) {
            addCriterion("statisticalTime not in", values, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeBetween(String value1, String value2) {
            addCriterion("statisticalTime between", value1, value2, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeNotBetween(String value1, String value2) {
            addCriterion("statisticalTime not between", value1, value2, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekIsNull() {
            addCriterion("statisticalWeek is null");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekIsNotNull() {
            addCriterion("statisticalWeek is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekEqualTo(String value) {
            addCriterion("statisticalWeek =", value, "statisticalweek");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekNotEqualTo(String value) {
            addCriterion("statisticalWeek <>", value, "statisticalweek");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekGreaterThan(String value) {
            addCriterion("statisticalWeek >", value, "statisticalweek");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekGreaterThanOrEqualTo(String value) {
            addCriterion("statisticalWeek >=", value, "statisticalweek");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekLessThan(String value) {
            addCriterion("statisticalWeek <", value, "statisticalweek");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekLessThanOrEqualTo(String value) {
            addCriterion("statisticalWeek <=", value, "statisticalweek");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekLike(String value) {
            addCriterion("statisticalWeek like", value, "statisticalweek");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekNotLike(String value) {
            addCriterion("statisticalWeek not like", value, "statisticalweek");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekIn(List<String> values) {
            addCriterion("statisticalWeek in", values, "statisticalweek");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekNotIn(List<String> values) {
            addCriterion("statisticalWeek not in", values, "statisticalweek");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekBetween(String value1, String value2) {
            addCriterion("statisticalWeek between", value1, value2, "statisticalweek");
            return (Criteria) this;
        }

        public Criteria andStatisticalweekNotBetween(String value1, String value2) {
            addCriterion("statisticalWeek not between", value1, value2, "statisticalweek");
            return (Criteria) this;
        }

        public Criteria andStatisticalresultIsNull() {
            addCriterion("statisticalResult is null");
            return (Criteria) this;
        }

        public Criteria andStatisticalresultIsNotNull() {
            addCriterion("statisticalResult is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticalresultEqualTo(Float value) {
            addCriterion("statisticalResult =", value, "statisticalresult");
            return (Criteria) this;
        }

        public Criteria andStatisticalresultNotEqualTo(Float value) {
            addCriterion("statisticalResult <>", value, "statisticalresult");
            return (Criteria) this;
        }

        public Criteria andStatisticalresultGreaterThan(Float value) {
            addCriterion("statisticalResult >", value, "statisticalresult");
            return (Criteria) this;
        }

        public Criteria andStatisticalresultGreaterThanOrEqualTo(Float value) {
            addCriterion("statisticalResult >=", value, "statisticalresult");
            return (Criteria) this;
        }

        public Criteria andStatisticalresultLessThan(Float value) {
            addCriterion("statisticalResult <", value, "statisticalresult");
            return (Criteria) this;
        }

        public Criteria andStatisticalresultLessThanOrEqualTo(Float value) {
            addCriterion("statisticalResult <=", value, "statisticalresult");
            return (Criteria) this;
        }

        public Criteria andStatisticalresultIn(List<Float> values) {
            addCriterion("statisticalResult in", values, "statisticalresult");
            return (Criteria) this;
        }

        public Criteria andStatisticalresultNotIn(List<Float> values) {
            addCriterion("statisticalResult not in", values, "statisticalresult");
            return (Criteria) this;
        }

        public Criteria andStatisticalresultBetween(Float value1, Float value2) {
            addCriterion("statisticalResult between", value1, value2, "statisticalresult");
            return (Criteria) this;
        }

        public Criteria andStatisticalresultNotBetween(Float value1, Float value2) {
            addCriterion("statisticalResult not between", value1, value2, "statisticalresult");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}